FROM docker.m.daocloud.io/library/python:3.10-slim

# 设置工作目录
WORKDIR /app

# 复制依赖文件和源码
COPY requirements.txt ./
COPY collect_func.py ./
COPY push.py ./


# 安装依赖，使用清华源加速
RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt

# 暴露端口
EXPOSE 9998

# 启动服务
CMD ["python", "collect_func.py"]
